package cn.lb.framework.poi.excel.entity.params;

import org.apache.poi.ss.usermodel.CellStyle;

import java.io.Serializable;

/**
 * 模板for each是的参数
 */
public class ExcelForEachParams implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * key
     */
    private String name;
    /**
     * 模板的cellStyle
     */
    private CellStyle cellStyle;
    /**
     * 行高
     */
    private short height;
    /**
     * 常量值
     */
    private String constValue;
    /**
     * 列合并
     */
    private int colspan = 1;
    /**
     * 行合并
     */
    private int rowspan = 1;

    public ExcelForEachParams() {

    }

    public ExcelForEachParams(String name, CellStyle cellStyle, short height) {
        this.name = name;
        this.cellStyle = cellStyle;
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CellStyle getCellStyle() {
        return cellStyle;
    }

    public void setCellStyle(CellStyle cellStyle) {
        this.cellStyle = cellStyle;
    }

    public short getHeight() {
        return height;
    }

    public void setHeight(short height) {
        this.height = height;
    }

    public String getConstValue() {
        return constValue;
    }

    public void setConstValue(String constValue) {
        this.constValue = constValue;
    }

    public int getColspan() {
        return colspan;
    }

    public void setColspan(int colspan) {
        this.colspan = colspan;
    }

    public int getRowspan() {
        return rowspan;
    }

    public void setRowspan(int rowspan) {
        this.rowspan = rowspan;
    }

}
